<template>
	<div>
		<v-table id="table" :tableData="tableData" :tableColumns="tableColumns"></v-table>
	</div>
</template>

<script>
	import vTable from '@/components/common/Table.vue';
	export default {
		components: {
			vTable
		},
		data(){
			return {
				tableData: [],
				tableColumns: [
					{ title: '姓名',  key: 'real_name', align: "center" },
					{ title: '性别',  key: 'gender', align: "center" },
					{ title: '年龄',  key: 'age', align: "center" }
				]
			}
		},
		methods:{
			
		},
		created(){
			this.tableData = [this.$route.query.obj];
			console.log(this.$route.query.obj)
		}
	}
</script>

<style scoped>
	#table{
		margin: 20px;
	}
</style>